package com.dragon.modules.yuegou.model.coupon;

import com.dragon.modules.yuegou.entity.coupon.WelfareRecordEntity;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * 优惠券福利信息领取记录表模型类
 * 
 * @author pbuilder generated
 * @date 2019-10-14 15:16:14
 * @company sgy
 * @version 2.0
 * @see Length 长度限制
 * @see NotNull 对象非空
 * @see NotEmpty 字符串、集合、表、数组非空
 */
public class WelfareRecord extends WelfareRecordEntity {

	/**
	 * 构造一个空优惠券福利信息领取记录表模型对象
	 */
	public WelfareRecord(){
		super();
	}
	
	/**
	 * 依据实体对象的信息构造一个优惠券福利信息领取记录表模型对象
	 * 
	 * @param entity 实体对象
	 */
	public WelfareRecord(WelfareRecordEntity entity){
		super(entity);
	}

	/**
	 * 依据其它对象的信息构造一个优惠券福利信息领取记录表模型对象
	 * 
	 * @param other 其它对象
	 */
	public WelfareRecord(WelfareRecord other){
		super(other);
	}


	@Override
	public String getId() {
    	return id;
    }

    /**
	 * 设置
	 * 
	 * @param id 
	 * @return 当前对象
	 */
    public WelfareRecord id(String id) {
    	this.id = id;
    	return this;
    }

	@Override
	public String getBusdId() {
    	return busdId;
    }

    /**
	 * 设置商圈ID
	 * 
	 * @param busdId 商圈ID
	 * @return 当前对象
	 */
    public WelfareRecord busdId(String busdId) {
    	this.busdId = busdId;
    	return this;
    }

	@Override
	public String getWelfareId() {
    	return welfareId;
    }

    /**
	 * 设置福利ID
	 * 
	 * @param welfareId 福利ID
	 * @return 当前对象
	 */
    public WelfareRecord welfareId(String welfareId) {
    	this.welfareId = welfareId;
    	return this;
    }

	@Override
	public String getCouponTemplateId() {
    	return couponTemplateId;
    }

    /**
	 * 设置券模板ID
	 * 
	 * @param couponTemplateId 券模板ID
	 * @return 当前对象
	 */
    public WelfareRecord couponTemplateId(String couponTemplateId) {
    	this.couponTemplateId = couponTemplateId;
    	return this;
    }

	@Override
	public String getMemberId() {
    	return memberId;
    }

    /**
	 * 设置领取会员
	 * 
	 * @param memberId 领取会员
	 * @return 当前对象
	 */
    public WelfareRecord memberId(String memberId) {
    	this.memberId = memberId;
    	return this;
    }

	@Override
	public String getCouponId() {
    	return couponId;
    }

    /**
	 * 设置优惠券ID
	 * 
	 * @param couponId 优惠券ID
	 * @return 当前对象
	 */
    public WelfareRecord couponId(String couponId) {
    	this.couponId = couponId;
    	return this;
    }

	@Override
	public LocalDateTime getReceiveTime() {
    	return receiveTime;
    }

    /**
	 * 设置领取时间
	 * 
	 * @param receiveTime 领取时间
	 * @return 当前对象
	 */
    public WelfareRecord receiveTime(LocalDateTime receiveTime) {
    	this.receiveTime = receiveTime;
    	return this;
    }
}
